package com.ujiuye;

/**
 * @author 施立璇
 * @version 1.0
 * @description: TODO
 * @date 2021/6/7 20:40
 */
public class Demo04 {

}

class User{
    private static String u = "校长";

    {
        u = "小王";
    }
static {
        u = "小李";
}


    public User() {
    }

    public String getU() {
        return u;
    }

    public void setU(String u) {
        this.u = u;
    }

    public static void main(String[] args) {
        String s = "1";
        s="2";
        User user = new User();
        System.out.println(user.getU());
    }
}